package edu.sctu.zhangwang.month201506.day20150601;

//import com.texttrain.main.appbean.PeopleAppbean;

/**
 * ��վ����������
 * 
 * @author teacher0
 *
 */
public class BaoGuoDeth {
	
	private String weijin = "易燃易爆,管制刀具,有毒物质,枪械";
	
	private PeopleAppbean peopleappbean;
	
	public BaoGuoDeth(PeopleAppbean peopleappbean){
		this.peopleappbean = peopleappbean;
	}
	
	
	/**
	 * ������
	 * 
	 * @return
	 */
	public boolean chaBaoGuo(){
		boolean is_weijin = false;
		if(peopleappbean.isIs_baoguo()){
			if(weijin.contains(peopleappbean.getBaoguoname())){
				is_weijin = true;
			}
		}else{
			is_weijin = false;
		}
		return is_weijin;
	}
	
	
	/**
	 * ���ˮ
	 * 
	 * @return
	 */
	public boolean chaWater(){
		boolean is_weijin = false;
		if(peopleappbean.isIs_water()){
			if(weijin.contains(peopleappbean.getWatername())){
				is_weijin = true;
			}
		}else{
			is_weijin = false;
		}
		
		return is_weijin;
	}

}
